package com.mytest;

import org.springframework.stereotype.Component;

@Component
public class Movie {

    private String actor;
    private String name;

    public Movie() {
        this.actor = "梁朝伟";
        this.name = "重庆森林";
    }

    public String getActor() {
        return actor;
    }

    public void setActor(String actor) {
        this.actor = actor;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
